POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
13 Jul 2025 13:47:21 EDT (-0400)
  Re: New SDL for POVRay  
From: Fa3ien
Date: 5 Oct 2007 14:37:59
Message: <47068487$1@news.povray.org>


> Quick question for the group:
> 
> Does anyone see any value in being able to use OO syntax to transform an
> object *after* it's declaration, in the general way shown in Shay's
> example? 

Yes, especially on objects collections.  Say you have a set of 100
spheres. Initially, they are small and red.  You want 60 of them
to become big, and 60 of them to become blue, but only 10 will
be blue AND big.  Either you make a complicated loops system,
either you just apply, successively, new parameters to 2 different
subsets of spheres.

 > (I would like to hope that we could come up with a cleaner
 > syntax than that.)

(the syntax above is very pessimistic)

> In principle, it seems like it could be useful, but I can't actually
> come up with any concrete examples of things that couldn't be
> accomplished in the current SDL.

Bruno Cabasson's example code looks like a good start to me.

Fabien.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.